import axios from "@/request/axios";
import {
  commonResponse,
  SetmealListReqForm,
  SetmealListResForm,
  DishAddReqForm,
  DishSingleReqForm,
  DishSingleResForm,
  SetmealAddReqForm,
  SetmealListItem,
  SetmealSingleReqForm,
  
} from "@/entity/entityDefine";

export const setmealList = (data: SetmealListReqForm) => {
  return axios.get<SetmealListResForm>("/setmeal/page", data);
};

export const setmealAdd = (data: SetmealAddReqForm) => {
  return axios.post<commonResponse>("/setmeal/save", data);
};

export const setmealById = (data: SetmealSingleReqForm) => {
  return axios.get<SetmealListItem>("/setmeal/", data);
};

export const setmealUpdate = (data: SetmealAddReqForm) => {
  return axios.post<commonResponse>("/setmeal/update", data);
};

// export const employeeStateUpdate = (data: EmployeeStateUpdateReq) => {
//   return axios.put<commonResponse>("/employee/", data);
// };
